<script setup lang="ts">
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import HanderView from './views/hander.vue'
import ceshi from './views/ceshi.vue'
</script>


<template>
  <el-config-provider :locale="zhCn">
    <div class="common-layout">
      <el-container style="height: 100vh;"> <!-- 添加高度100vh -->
        <el-header style="height: auto;"><HanderView/></el-header>
        <el-main style="padding: 0;"> <!-- 移除默认padding -->
          <router-view/>
        </el-main>
      </el-container>
    </div>
  </el-config-provider>
</template>

<style>
/* 全局样式确保html和body高度100% */
html, body, #app {
  height: 100%;
  margin: 0;
  padding: 0;
}
</style>